<!doctype html>
<html lang="en">

	<head>
		<meta charset="UTF-8" />
		<title>充值结果</title>
		<script src="html5plus://ready"></script>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css" />
	</head>

	<body>
		<!--<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 style="color: #fff;" class="mui-title">钱包</h1>
		</header>-->

	</body>
	<script src="../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/md5.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/function.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
			mui.init({
				beforeback: function() {
					var list = plus.webview.getWebviewById('wallet');
					mui.fire(list, 'myupdate');
					console.log('要通知')
					return true
				}
			});
			showWaiting('加载中…');
			var self = plus.webview.currentWebview();
			var type = self.type;
			var title;
			var gourl;
			switch(type) {
				case 'qianbao':
					title = '交易记录';
					gourl = 'http://www.jiaoyou0.cn/index.php/index/pay/payOk/type/1/user_id/' + configs.user_id;
					break;
				case 'chongzhi':
					title = '充值结果';
					gourl = 'http://www.jiaoyou0.cn/index.php/index/pay/payOk/user_id/' + configs.user_id;
					break;
				default:
					title = '快捷支付';
					gourl = type;
					break
			}
			//mui('.mui-title')[0].innerHTML = title;
			var self = plus.webview.currentWebview();
			var baiduWV = plus.webview.create(gourl, "shilu");
			self.append(baiduWV);
			baiduWV.addEventListener('loaded', function(e) {
				plus.nativeUI.closeWaiting()
			}, false);
			setTimeout(function() {
				plus.nativeUI.closeWaiting()
			}, 5000)
	</script>

</html>